package com.mzj.saas.mservice.report.controller;

import com.mzj.saas.commons.ApiData;
import com.mzj.saas.commons.ResultBean;
import com.mzj.saas.mservice.report.service.ReportComplainStatisticsService;
import com.mzj.saas.mservice.report.vo.ReportComplainStatisticsVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * 投诉建议统计
 */

@Controller
@RequestMapping("/reportComplainStatistics")
public class ReportComplainStatisticsController {

    @Autowired
    private ReportComplainStatisticsService reportComplainStatisticsService;

    /**
     * 列表
     *
     * @param accessToken 验证令牌
     * @param pageNumber  起始数据
     * @param pageSize    页面大小
     * @param vo
     * @return
     */
    @GetMapping("/pages")
    @ResponseBody
    public ResultBean<ApiData<ReportComplainStatisticsVO>> pages(@RequestHeader String accessToken,
                                                                 @RequestParam(defaultValue = "0") Integer pageNumber,
                                                                 @RequestParam(defaultValue = "10") Integer pageSize,
                                                                 ReportComplainStatisticsVO vo) {

        return reportComplainStatisticsService.pages(accessToken, pageNumber, pageSize, vo);

    }


}
